<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
<div id="test0">
    <h1>title : {{title}}</h1>
</div>
<div id="app">
    {{ message }}
</div>
<script type="text/javascript">
    //1. 创建Vue实例
    var test = new Vue({
        el:'#test0',//2. 绑定id为test0的元素
        data:{//3. 设置参数
            title: 'VueTest',
            author: 'fxq'
        },
        methods: {
            details: function (){
                return 'hello world！ write by' + this.author;
            }
        }
    });

    var app = new Vue({
        el:'#app',
        data:{
            message:'Hello World!'
        }
    });

</script>
</body>
</html>